package com.hzw.saas.service.rbac.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzw.saas.common.config.model.BaseAssociativeModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 用户角色关联表
 *
 * @author zzl
 * @TableName tb_role_permission
 * @since 08/30/2021
 */
@TableName(value = "tb_role_permission")
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class RolePermission extends BaseAssociativeModel {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 所属系统, 1-后台管理用户, 2-云平台用户
     */
    private Integer sys;

    /**
     * 角色ID
     */
    private String roleId;

    /**
     * 权限ID
     */
    private String permId;

}
